# import os
# import pytest
#
# pytest.main([
#     '-sv',
#     r'D:\appium130\test_cases\test_search_page.py',
#     '--clean-alluredir',
#     '--alluredir=./allure-result'
# ])
#
# # 注意：allure.bat 路径加引号，避免空格问题
# bat = r'"C:\Users\Administrator\Desktop\allure-2.22.0\bin\allure.bat"'
# os.system(f'{bat} generate ./allure-result -o ./report --clean')
# os.system(f'{bat} open ./report')


# 以下是在终端运行打开allure报告
# pytest .\test_cases\test_search_page.py --alluredir=UIreport --clean-alluredir
# allure serve .\UIreport\






